﻿@{
    AjaxOptions aj=new AjaxOptions();
    aj.InsertionMode=InsertionMode.Replace;
    aj.HttpMethod="POST";
    aj.UpdateTargetId = "update";
}


 <div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">Nhập dữ liệu bằng Excel</h4>
            </div>
            <div class="modal-body" id="update">
                <input name="FileImport" type="file" />
            </div>
            <div class="modal-footer">
                @Ajax.ActionLink("Thực hiện", "Insert", null, aj, new { @class="btn btn-primary"})
                @*<button type="submit" class="btn btn-primary">Thực hiện</button>*@
                <button type="button" class="btn btn-default" data-dismiss="modal">Hủy</button>
            </div>
        </div>
    </div>
</div>
